.transparent-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.8;
    transition: opacity .2s;
    z-index: 1;
}

.gallery-close {
    padding: 20px;
    position: absolute;
    right: 10px;
    z-index: 2;
    top: 0;
    height: 10px;
}

@keyframes fadein-gallery {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-moz-keyframes fadein-gallery { /* Firefox */
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadein-gallery { /* Safari and Chrome */
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-o-keyframes fadein-gallery { /* Opera */
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.left-on-photo {
    max-height: 100%;
    position: absolute;
    left: 5px;
    top: calc(50% - 50px);
    padding: 50px 50px 50px 0;
}

.left-on-photo img {
    transform: rotate(90deg);
    height: 10px;
}

.right-on-photo {
    max-height: 100%;
    position: absolute;
    right: 5px;
    top: calc(50% - 50px);
    padding: 50px 0 50px 50px;
}
.right-on-photo img {
    transform: rotate(-90deg);
    height: 10px;
}

.modal-gallery-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    animation: fadein-gallery 0.5s;
    -moz-animation: fadein-gallery 0.5s;
    -webkit-animation: fadein-gallery 0.5s;
    -o-animation: fadein-gallery 0.5s;
}

.modal-gallery-wrapper .content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.photo-wrapper{
    max-height: calc(100% - 140px);
}

.gallery-current-photo-wrapper {
    height: 100%;
    position: relative;
    margin-top: 10px;
}

.gallery-current-photo-wrapper .gallery-current-photo {
    max-height: 100%;
}

.author-wrapper {
    color: white;
    font-weight: 600;
    visibility: hidden;
}
.author-wrapper img {
    margin-right: 10px;
}
.author-url{
    text-decoration: none;
    color: white;
}
.author-url:hover{
    text-decoration: none;
    color: white;
}

.author-wrapper.with-author {
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .author-wrapper {
        margin: -40px 0 0 10px;
        font-size: 12px;
    }

    .author-wrapper img {
        height: 30px;
        width: 30px;
        border-radius: 15px;
    }
}

@media screen and (min-width: 769px) {
    .author-wrapper {
        margin: -50px 0 0 10px;
        font-size: 14px;
    }

    .author-wrapper img {
        height: 42px;
        width: 42px;
        border-radius: 21px;
    }
}

.miniatures {
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    height: 100px;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
}

.miniatures::-webkit-scrollbar {
    display: none;
}

.gallery-min-item img {
    height: 85px;
    max-width: none;
}